package com.tqz.rc.server.consistency;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>数据存储，即一个key对应一个服务的数据。
 *
 * @author tianqingzhao
 * @since 2021/8/27 10:46
 */
public class DataStore {

    private Map<String, Datum> dataMap = new ConcurrentHashMap<>(1024);

    public void put(String key, Datum value) {
        dataMap.put(key, value);
    }

    public Datum get(String key) {
       return dataMap.get(key);
    }
}
